import $AppConfig from '../dev/app_config.js'


Vue.use($AppConfig, {})

var vm = new Vue({
    el: '#detail',
    data: {
        state: true,
        title: '',
    },
    computed: {},
    methods: {
        black() {
            location.href = `./index.html`
        }
    },
    mounted: function() {
        //  获取url参数
        const params = Vue.$AppConfig.urlParams

        // 请求
        this.$http.get(Vue.$AppConfig.INTERFACE_HOST + '/getLineStation.php', { params: { lineId: params.lineId } }, { emulateJSON: true })
            .then(response => {
                let body = response.body
                console.log(body)
            })
            .catch(e => {
                // 请求失败
            })

    }
})